package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {

    /**
     * 进行分页查询
     * @param page
     * @param pageSize
     * @return
     */
    PageBean page(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);

    void deleteEmps(List<Integer> ids);

    void insertEmp(Emp emp);

    Emp selectById(Integer id);

    void updateById(Emp emp);

    Emp login(Emp emp);
}
